package com.sz.common.base.dao.ext;

/**
 * Function: 操作符 <br>
 * Author: hpeng.wang<br>
 * Date: 2017-01-04 13:11:00
 */
public enum Operator {

    EQ, NEQ, LIKE, GT, LT, IS, ISNOT, GE, LE;

    public static String getOpString(Operator operator) {
        switch (operator) {
            case EQ:
                return "=";
            case NEQ:
                return "<>";
            case LIKE:
                return "like";
            case GT:
                return ">";
            case LT:
                return "<";
            case GE:
                return ">=";
            case LE:
                return "<=";
            case IS:
                return "is";
            case ISNOT:
                return "is not";
            default:
                return "=";
        }
    }
}
